package com.event.management.frontend.mapper;

import com.event.management.frontend.domain.EventQuestionnaire;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 活动问卷关联Mapper接口
 */
@Mapper
public interface EventQuestionnaireMapper {
    
    /**
     * 获取活动关联的所有问卷模板ID
     * @param eventId 活动ID
     * @return 问卷模板ID列表
     */
    @Select("SELECT template_id FROM event_questionnaire WHERE event_id = #{eventId} AND is_active = 1")
    List<Long> selectTemplateIdsByEventId(@Param("eventId") Long eventId);
} 